package com.xydpeng.rpc.springboot.config.provider;

import com.xydpeng.rpc.springboot.listener.RpcServerInitListener;
import com.xydpeng.rpc.springboot.model.RpcConfigProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2023/4/7
 * @description:
 */
@Configuration
@EnableConfigurationProperties(RpcConfigProperties.class)
public class RpcProviderAutoConfiguration {

    @Bean
    public RpcServerInitListener rpcServerInitListener(){
        return new RpcServerInitListener();
    }

}
